package com.sunyard.pcc;

import com.sunyard.pcc.column.CodeGenerateFactory;
import com.sunyard.pcc.column.FtlDef;
import org.springframework.stereotype.Component;

@Component
public class CodeUtil {

    public static void createDept() {
        String tableName = "sys_dept"; //
        String codeName = "部门表";// 中文注释 当然你用英文也是可以的
        String entityPackage = "sysDept";// 实体包
        String keyType = FtlDef.KEY_TYPE_02;// 主键生成方式 01:UUID 02:自增
        CodeGenerateFactory.codeGenerate(tableName, codeName, entityPackage, keyType, false,false);
    }



    public static void main(String[] args) {
        createDept();
    }
}
